package org.acra.sender;

import android.content.Context;
import android.content.Intent;
import org.acra.ACRA;
import org.acra.ReportField;
import org.acra.e;

public class a
  implements d
{
  private final Context a;

  public a(Context paramContext)
  {
    this.a = paramContext;
  }

  private String b(org.acra.b.c paramc)
  {
    ReportField[] arrayOfReportField1 = ACRA.getConfig().d();
    if (arrayOfReportField1.length == 0);
    for (ReportField[] arrayOfReportField2 = e.b; ; arrayOfReportField2 = arrayOfReportField1)
    {
      StringBuilder localStringBuilder = new StringBuilder();
      int i = arrayOfReportField2.length;
      for (int j = 0; j < i; j++)
      {
        ReportField localReportField = arrayOfReportField2[j];
        localStringBuilder.append(localReportField.toString()).append("=");
        localStringBuilder.append((String)paramc.get(localReportField));
        localStringBuilder.append('\n');
      }
      return localStringBuilder.toString();
    }
  }

  public void a(org.acra.b.c paramc)
  {
    String str1 = this.a.getPackageName() + " Crash Report";
    String str2 = b(paramc);
    Intent localIntent = new Intent("android.intent.action.SEND");
    localIntent.addFlags(268435456);
    localIntent.setType("text/plain");
    localIntent.putExtra("android.intent.extra.SUBJECT", str1);
    localIntent.putExtra("android.intent.extra.TEXT", str2);
    String[] arrayOfString = new String[1];
    arrayOfString[0] = ACRA.getConfig().o();
    localIntent.putExtra("android.intent.extra.EMAIL", arrayOfString);
    this.a.startActivity(localIntent);
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     org.acra.sender.a
 * JD-Core Version:    0.6.2
 */